/**
 *
 * @author andrew
 */

package org.chemdraw.molecule;

import org.chemdraw.atoms.Atom;
import org.chemdraw.atoms.*;
import java.util.ArrayList;

public class Molecule {

    private ArrayList<Atom> atoms;
    private int weight;

    public Molecule(ArrayList<Atom> atoms){
        
        this.atoms = atoms;

        int accum = 0;

        for (Atom a : atoms){
            accum += a.getAtomicNumber();
        }
        this.weight = accum;
        
    }

}
